Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the grunt-contrib-copy package and associated copy task. This task... #412

Closed
wants to merge 1 commit into from
Closed

Added the grunt-contrib-copy package and associated copy task. This task... #412

wants to merge 1 commit into from

Conversation

ryanlatham
Copy link

... will move the glyphicon fonts, from the default bootstrap dist directory, into the public/build/ directory. The bootstrap.min.css file expects the fonts to be in this directory and will cause 404 errors on heroku if they are not present. The copy task has been added the list of tasks run on a heroku production build. If bootstrap is ever served using a CDN, this change should be removed.

Closes #410

…ask will move the glyphicon fonts, from the default bootstap dist directory, into the public/build/ directory. The bootstrap.min.css file expects the fonts to be in this directory and will cause 404 errors on heroku if they are not present. The copy task has been added the list of tasks run on a heroku production build. If bootstrap is ever served using a CDN, this change should be removed.
@liorkesos
Copy link
Member

Hi Ryan,
Thanks for the contribution.
Any reason you see why we shouldn't load the bootstrap assets off a CDN?
Maybe we should have this as the default behaviour
Lior

On Sun, Apr 20, 2014 at 8:22 AM, Ryan Latham notifications@github.comwrote:

... will move the glyphicon fonts, from the default bootstrap dist
directory, into the public/build/ directory. The bootstrap.min.css file
expects the fonts to be in this directory and will cause 404 errors on
heroku if they are not present. The copy task has been added the list of
tasks run on a heroku production build. If bootstrap is ever served using a
CDN, this change should be removed.

Closes #410 #410

You can merge this Pull Request by running

git pull https://github.com/ryanlatham/mean heroku-glyphicons-fix

Or view, comment on, or merge it at:

#412
Commit Summary

  • Added the grunt-contrib-copy package and associated copy task. This
    task will move the glyphicon fonts, from the default bootstap dist
    directory, into the public/build/ directory. The bootstrap.min.css file
    expects the fonts to be in this directory and will cause 404 errors on
    heroku if they are not present. The copy task has been added the list of
    tasks run on a heroku production build. If bootstrap is ever served using a
    CDN, this change should be removed.

File Changes

Patch Links:


Reply to this email directly or view it on GitHubhttps://github.com//pull/412
.

Lior Kesos - http://www.linnovate.net
Linnovate - Community Infrastructure Care
mail: lior@linnovate.net
office: +972 722500881
cell: +972 524305252
skype: liorkesos

@ryanlatham
Copy link
Author

Hi Lior,

No, actually I don't see any practical reason why bootstrap shouldn't be served off a CDN. Doing so increases the speed at which your pages load, decreases load on your own hosting platform, reduces the need to manually manage files (like I had to do in this PR), and I believe is the generally accepted standard for serving static assets. In addition, if the user has already visited a website that used a CDN to deliver the same assets that you are delivering, the browser will use the cached version, completely eliminating the need to redownload them.

My only opposition to CDNs is a moral one. The reason most CDNs are free is the CDN hosters record data on anyone that makes a request. Therefore, anyone who visits your website is inadvertently also visiting your CDN's websites. I dislike the lack of transparency. However, I still think using a CDN is a best a practice at this point.

I had not mentioned the CDN fix because I saw there was some opposition to in in #291. If you are open to exploring this route though, I would be willing to be remove my changes and test out @udisun's changes to see if they resolved this issue.

Ryan

@fyockm
Copy link
Contributor

fyockm commented Apr 25, 2014

@ryanlatham @liorkesos any reason we shouldn't merge this PR now to fix the glyphicon problem until we sort out the CDN stuff?

@ryanlatham
Copy link
Author

@fyockm @liorkesos I would think it was a good idea for now. I have been contacted by other users who tried out these changes and have verified they are working. This at least puts you in a functional state until a better solution can be found.

@fyockm
Copy link
Contributor

fyockm commented May 2, 2014

@ryanlatham what happened to the repo for this PR?

@liorkesos liorkesos closed this Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Glyphicons cannot be found with Heroku Deployment
3 participants